package com.nhjf.common;


public class Constants {

	/** 用到SYS_DICT_TYPE类型定义的 ----start */
	public static final String COUPON_TYPE = "100"; // 优惠卷类型
	public static final String COUPON_STATE = "101"; // 优惠卷状态
	public static final String ORG_EMPLOYEE = "64";// 员工机构信息
	public static final String LETTERSTATUS = "163";// 信件状态
	public static final String LETTERTYPE = "161";// 信件分类
	public static final String APPLYORDER = "281";// 信件分类
	public static final String MERCHANTTYPE = "341";// 商户分类
	public static final int PearlCertificatesSysDictType = 324; // 数据字典类型中的明珠券类型
	public static final String NOTICETYPE = "170";// 公告类型
	public static final String NOTICSTATUS = "162";// 公告状态
	/** 用到SYS_DICT_TYPE类型定义的 ----end */

	/** 商品相关常量定义 ---start **/
	public static final Long ONE_PRODTYPE_TREENODE_PARENTID = 1L; // 商品分类1级菜单父级id为0
	public static final String PRODUCT_IS_ON_BUY = "5"; // 商品上架
	public static final String PRODUCT_IS_OFF_BUY = "4"; // 商品下架
	/** 商品相关常量定义 ---end **/

	/** bean及ServcieBean定义 -- start */
	public static final String SHOW_PRODUCT = "SHOW_PRODUCT";
	public static final String EXP_SHIPPING = "EXPRESS";// 快递
	public static final String EMS_SHIPPING = "EMS";// 邮政速递
	public static final String PURCHASE_ONE = "purchaseOne"; // 直接购买
	public static final String SYSTEM_BEAN = "sysManager"; // 系统管理
	public static final String PARAM_BEAN = "paramManager"; // 参数管理
	public static final String COMMON_ADDRESS_BEAN = "common_addressClient"; // 地址管理
	public static final String USER_INFO = "user";
	public static final String MEMBER_INFO = "member";
	public static final String MERCHANT_INFO = "merchant";
	public static final String LEFTPRODUCT_MENU = "leftProduct"; // 左边商品菜单 zh
	public static final String MILEAGERANGE = "mileageRange"; // 里程范围字典 zh
	public static final String ORDERMANAGER = "orderManagement"; // 订单管理 zh
	public static final String MEMBERADDRESS = "aaa"; // 收货地址设置 zh
	public static final String NOTICE = "web_NoticeService"; // 前台公告信息
	/** bean及ServcieBean定义 -- end */

	/** 分页条数 默认条数 --start */
	public static final int DEFAULT_SHOW_NUM = 10;// 后台默认显示每页分页条数
	public static final int ORDERPAGESIZE = 10;// 订单管理pagesize
	public static final int PROD_SHOW_NUM = 5;// 商品属性分页显示条数
	public static final int MERCHANT_SHOW_NUM = 10;// 供应商后台默认显示分页条数
	/** 分页条数 默认5条 --end */

	/** 订单规则 */
	public static final String ORDER_TYPE_NORMAL = "1";// 普通订单类型
	public static final String ORDER_TYPE_TUAN = "2";// 团购订单类型
	public static final String ORDER_TYPE_EXCHANGE = "4";//退换货订单类型
	public static final String ORDER_ARRAY = "0001";// 默认订单序列号（4位）

	/** 存放图片Path定义 --start **/
	public static final String PICPATH = "/fileUpload/shop/product";

	/*** freamark路径定义 */
	@SuppressWarnings("static-access")
	public static final String TEMPLATE_PATH_WEB = ClassPathTool.getInstance()
			.getWebRootPath()
			+ "/web/page/notice/";
	@SuppressWarnings("static-access")
	public static final String FILE_NAME = ClassPathTool.getInstance()
			.getWebRootPath()
			+ "/excel/";
	@SuppressWarnings("static-access")
	public static final String TEMPLATE_WEB = ClassPathTool.getInstance()
			.getWebRootPath()
			+ "/web/page/shoppHtml/";
	@SuppressWarnings("static-access")
	public static final String TEMPLATE_PATH = ClassPathTool.getInstance()
			.getWebRootPath()
			+ "/admin/page/template/";

	public static final String ORDER_TYPE_SECKILL = "3";// 秒杀订单类型

	/** 普通订单状态 */
	public static final String ORDER_STATE_WEIZHIFU = "1"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_YIZHIFU = "2"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_XINXIBUZHENGQUE = "3"; // 订单状态 1：未支付
	// 2：已支付
	// 3:信息不正确
	// 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_GUAQI = "4"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_FAHUO = "5"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_YIFAHUO = "6"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_QUXIAO = "7"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_YIQIANSHOU = "8"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_YITUIKUANG = "9"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
	public static final String ORDER_STATE_YIJUQIAN = "10"; // 订单状态 1：未支付 2：已支付
	// 3:信息不正确 4：挂起
	// 5：发货;6已发货;7订单已取消;8已签收;9已退款;10已拒签
    
	//团购  退货
	public static final String TUAN_ORDER_STATE_TUIHUO="10";
	//团购 签收
	public static final String TUAN_ORDER_STATE_QIANSHOU="6";
	//团购 拒签
	public static final String TUAN_ORDER_STATE_JUQIAN="8";
	//团购 取消
	public static final String TUAN_ORDER_STATE_QUXIAO="5";
	//团购  已退款
	public static final String TUAN_ORDER_STATE_YITUIKUANG = "9";
	
	
	/**
	 * 团购商品  未发布 1
	 */
	public static final String TUAN_STATE_WEIFABU = "1";
	
	/**
	 * 团购商品  已发布 2
	 */
	public static final String TUAN_STATE_YIFABU = "2";
	
	/**
	 * 团购商品  初审成功 3
	 */
	public static final String TUAN_STATE_CHUSHEN_SUCC = "3";
	
	/**
	 * 团购商品  复审成功 4
	 */
	public static final String TUAN_STATE_FUSHEN_SUCC = "4";

	/**
	 * 团购商品  审核不通过 5
	 */
	public static final String TUAN_STATE_SHENHEBUTONGGUO = "5";
	
	/**
	 * 团购商品  未审核 0
	 */
	public static final String TUAN_STATE_WEISHENHE = "0";
	
	
	
	/**
	 * 活动商品管理 未审核 -1
	 */
	public static final String PRODUCT_ACTIVITY_STATE_WEISHENHE = "-1";
	
	/**
	 * 活动商品管理 未上架 0
	 */
	public static final String PRODUCT_ACTIVITY_STATE_WEISHANGJIA = "0";
	
	/**
	 * 活动商品管理 已上架 1
	 */
	public static final String PRODUCT_ACTIVITY_STATE_YISHANGJIA = "1";
	
	/**
	 * 活动商品管理 初审成功 2
	 */
	public static final String PRODUCT_ACTIVITY_STATE_CHUSHEN_SUCC = "2";
	
	/**
	 * 活动商品管理 复审成功 3
	 */
	public static final String PRODUCT_ACTIVITY_STATE_FUSHEN_SUCC = "3";
	
	/**
	 * 活动商品管理 审核不通过 4
	 */
	public static final String PRODUCT_ACTIVITY_STATE_SHENHE_FAILL = "4";
	
	
	
	
	/**
	 * 秒杀商品 未审核0
	 */
	public static final String SECKILL_STATE_WEISHENHE = "0";
	
	/**
	 * 秒杀商品 初审成功1
	 */
	public static final String SECKILL_STATE_CHUSHEN_SUCC = "1";
	
	/**
	 * 秒杀商品 复审成功2
	 */
	public static final String SECKILL_STATE_FUSHEN_SUCC = "2";
	
	/**
	 * 秒杀商品 下架3
	 */
	public static final String SECKILL_STATE_DOWN = "3";
	
	/**
	 * 秒杀商品 上架4
	 */
	public static final String SECKILL_STATE_UP = "4";
	
	/**
	 * 秒杀商品 审核不通过5
	 */
	public static final String SECKILL_STATE_SHENHE_FAIL = "5";
	
	
	
	/** 会员级别 */
	public static final String MEMBER_VIP_ONE = "普通会员";
	public static final String MEMBER_VIP_TWO = "银卡会员";
	public static final String MEMBER_VIP_THREE = "金卡会员";

	/** 注册默认给与里程数 */
	public static final Long DEFAULT_MILEAGES = 50000L;

	public static final String SHIPPERID = "润达博宏";

	public static final String KEY_SIGN = "sign";

	/** 退货通知业务编码-2001 */
	public static final String NOTIFY_RETURNORDER = "2001";

	/** 发货通知业务编码-2002 */
	public static final String NOTIFY_ORDER = "2002";

	/** 发货通知业务编码-2003 */
	public static final String NOTIFY_CHANGEORDER = "2003";
	
	/**
	 *商品信息同步交易业务编码-1001
	 */
	public static final String TRADE_SYNCPRODUCTINFO = "1001";

	/**
	 * 发货单交易业务编码-1002
	 */
	public static final String TRADE_ORDERINFO = "1002";
	/**
	 * 取消订单交易业务编码-1003
	 */
	public static final String TRADE_CANCELORDERINFO = "1003";

	/**
	 * 库存信息查询交易业务编码-1004
	 */
	public static final String TRADE_STOCKINFO = "1004";
	/**
	 * 虚拟订单类型
	 */
	public static final String VIRTUAL_ORDER = "2";

	/**
	 * 出库通知返回订单状态
	 */
	public static final String SEND = "SEND";// 已发货
	public static final String CONSIGN = "CONSIGN";// 签收
	public static final String FAILED = "FAILED";// 拒签
	/**
	 * 南航普通订单状态
	 */
	public static final String PSEND = "6";// 已发货
	public static final String PCONSIGN = "8";// 签收
	public static final String PFAILED = "10";// 拒签
	/**
	 * 南航团购订单状态
	 */
	public static final String TSEND = "4";// 已发货
	public static final String TCONSIGN = "6";// 签收
	public static final String TFAILED = "8";// 拒签

	/**
	 * 站内信状态
	 */
	public static final String READ = "1";
	public static final String NOREAD = "0";
    
    /**
     * 队列标识
     */
	public static final String SEND_SMS="0";
	public static final String SEND_EMAIL="1";
	
	//*************交易状态****************
	/**
	 * 交易成功
	 */
	public static final String TRADE_SUCCESS = "TRADE_SUCCESS";
	/**
	 * 交易失败
	 */
	public static final String TRADE_ERROR = "TRADE_ERROR";
	/**
	 * 验证失败
	 */
	public static final String TRADE_FAILED = "TRADE_FAILED";
	
	
	/**
	 *  添加标识
	 */
	public static final String ADD="ADD";
	/**
	 *  修改标识
	 */
	public static final String MIDIFY="MIDIFY";
	
	public static final String BUYLEVEL_P_1 ="1" ;  //普通卡
	public static final String BUYLEVEL_PY_2 ="12" ; 
    public static final String BUYLEVEL_PYJ_3 ="123" ;
    public static final String BUYLEVEL_Y_4 ="2" ;  //银卡
    public static final String BUYLEVEL_YJ_5 ="23" ;
    public static final String BUYLEVEL_J_6 ="3" ;  //金卡
	public static final String buyLevel_pj_7="13" ;
	public static final String buyLevel_8="13" ;
	/**
	 * 后台基本权限<无须拦截的>
	 */
	public static final String[] NONEEDURL = {
			"/login",
			"/resources"
//			"/user/resourceAction!gethead.action",
//			"/user/resourceAction!findLeftMenuSession.action",
//			"/user/resourceAction!findLeftMenu.action",
//			"/admin/page/system/OrganizationInfo.jsp",
//			"/admin/page/system/deptList.jsp",
//			"/admin/page/system/ResourcesInfo.jsp",
//			"/admin/page/adminIndex.jsp" ,
//			"/myupload/fileUpload!ajaxImg.action" ,
//			"/merchant/exchangeAction!queryCityByProId.action",
//			"/merchant/exchangeAction!queryAreaByCityId.action",
//			"/admin/page/product/ProTypeTreeInfo.jsp",
//			"/user/productAdminAction!queryTypeSpecsList.action",
//			"/user/productAdminAction!queryMainTypeSpecsList.action",
//			"/user/productAdminAction!checkSpecs.action",
//			"/admin/merchantLogin.jsp",
//			"/admin/merchantLoginAction!merchantLogin.action"
			};

}
